-- GENERATED SPELL FOR [Fordragon Sentinel] --


function spell0_27576(pUnit, Event) --@Glaive Throw,n/a--
pUnit:FullCastSpellOnTarget(49481,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27576', 2349, 1)
end

function spell1_27576(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27576', 632, 1)
end

function Sorts_27576(pUnit, Event)
local choix_sorts_27576 = math.random(0, 1)
if choix_sorts_27576 == 0 then
pUnit:RegisterEvent('spell0_27576', 1, 1)
end
if choix_sorts_27576 == 1 then
pUnit:RegisterEvent('spell1_27576', 1, 1)
end
end

function mob27576_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27576', math.random(1500, 3000), 1)
end

function mob27576_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27576_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27576_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27576, 1, 'mob27576_Action')
RegisterUnitEvent(27576, 2, 'mob27576_Leave')
RegisterUnitEvent(27576, 3, 'mob27576_Kill')
RegisterUnitEvent(27576, 4, 'mob27576_Die')
